package my.bean;

/**
 * 商品类
 * 属性:gid,name,price,type [gid,goods_name,goods_price,goods_type]
 * 操作:构造器,getter 和 setter 方法
 * @author slim
 *
 */
public class Goods {
	private int gid;
	private String name;
	private double price;
	private int type;

	public Goods(int gid, String name, double price, int type) {
		super();
		this.gid = gid;
		this.name = name;
		this.price = price;
		this.type = type;
	}

	public Goods(String name, double price, int type) {
		super();
		this.name = name;
		this.price = price;
		this.type = type;
	}

	public Goods() {
		super();
	}

	public int getGid() {
		return gid;
	}

	public void setGid(int gid) {
		this.gid = gid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
